package xyz.awesomeman;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import xyz.awesomeman.entity.DBConfig1;
import xyz.awesomeman.entity.DBConfig2;

//在配置文件中有分不同环境的配置 和springboot的端口配置
@SpringBootApplication
@EnableConfigurationProperties(value = { DBConfig1.class, DBConfig2.class })  //读取信息
@EnableScheduling     //启动定时
//@EnableAsync          //启动异步
public class App {
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
		
	}
}
